package com.jr.service.impl;

import com.jr.entry.Flights;
import com.jr.mapper.FlightMapper;
import com.jr.pojo.FlightGet;
import com.jr.pojo.FlightPojo;
import com.jr.pojo.SellcompanyPojo;
import com.jr.service.FlightsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
@Component
@Service
public class FlightServiceImpl implements FlightsService {

    @Autowired
    private FlightMapper flightMapper;

    @Override
    public ArrayList<FlightPojo> select(FlightGet flightGet) {
        return flightMapper.select(flightGet);
    }

    @Override
    public ArrayList<SellcompanyPojo> selectById(int id) {
        return flightMapper.selectById(id);
    }
}
